﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true" CodeBehind="FeeWS.aspx.cs" Inherits="WEB.T_all.FeeWS" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    未收明细表   
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <table style="width: 100%;">
        <tr>
            <td align="center">
                <table class="distance">
                    <tr>
                        <td align="right" class="style16">
                            &nbsp;</td>
                        <td align="right" class="style16">
                            &nbsp;</td>
                        <td class="style12" align="left">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="right" class="style16">
                            &nbsp;</td>
                        <td align="right" class="style16">
                            按时间段:
                        </td>
                        <td class="style12" align="left">
                            <asp:TextBox ID="tbGency" runat="server" class="Wdate" 
                                Height="22px" Width="150px"></asp:TextBox>
                            &nbsp;至 
                            <asp:TextBox ID="tbGency1" runat="server" class="Wdate" 
                                Height="22px" Width="150px"></asp:TextBox>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="style17">
                            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                                <asp:ListItem Value="0">未收款项</asp:ListItem>
                                <asp:ListItem Value="1">利润统计</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style17">
                            客户:
                        </td>
                        <td class="style18" align="left">
                            <asp:TextBox ID="tbCus" runat="server" Width="281px" Height="24px">
                            </asp:TextBox>
                            <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServiceMethod="GetCustomersName"
                              TargetControlID="tbCus" MinimumPrefixLength="1" CompletionInterval="358">
                             </asp:AutoCompleteExtender>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Check" runat="server" OnClick="Check_Click" Text="查询统计" 
                                CssClass="Submit_yellowbig" Height="27px" Width="104px" />
                            &nbsp;&nbsp;&nbsp;<asp:Button ID="Excel" runat="server" 
                                OnClick="Excel_Click" Text="导出Excel" 
                                CssClass="Submit_yellowbig" Height="27px" Width="104px" />
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="right" class="style17">
                            &nbsp;</td>
                        <td align="right" class="style17">
                            &nbsp;</td>
                        <td class="style18" align="left">
                            &nbsp;</td>
                    </tr>
                    </table>
            </td>
        </tr>
        <tr>
            <td align="center" class="style1" colspan="2" valign="top">
                <asp:GridView ID="gvTALL" runat="server" AutoGenerateColumns="False" Height="40px"
                    Style="margin-top: 0px" Width="823px" CellPadding="3"
                    ForeColor="Black" GridLines="Vertical" 
                    OnRowDataBound="gvTALL_RowDataBound" PageSize="15"
                    BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" 
                    BorderWidth="1px" AllowPaging="True" 
                    onpageindexchanging="gvTALL_PageIndexChanging">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="sheetid" HeaderText="委托单号" />
                        <asp:BoundField DataField="agencyDate" HeaderText="日期" 
                            DataFormatString="{0:yyyy-MM-dd}" />
                        <asp:BoundField DataField="CustomerName" HeaderText="客户" />
                        <asp:BoundField DataField="goodsName" HeaderText="货名" />
                        <asp:BoundField DataField="grossWeight" HeaderText="数量" />
                        <asp:BoundField DataField="feeName" HeaderText="费用类型" />
                        <asp:BoundField DataField="差额" HeaderText="未收款" >
                        <ItemStyle Font-Underline="True" ForeColor="Red" />
                        </asp:BoundField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
                            <asp:Label ID="LBmo" runat="server"></asp:Label>
                            <asp:Label ID="LBkai" runat="server"></asp:Label>
                            <asp:Label ID="LBcus" runat="server"></asp:Label>
                <br />
                <asp:Label ID="Label7" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" class="style7" colspan="2" bgcolor="#FFFF99">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="Label4" runat="server" Text="合计:"></asp:Label>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 总未收款:<asp:Label ID="Label1" runat="server"
                    Text="0"></asp:Label>
                &nbsp;元&nbsp;&nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
